namespace il.lua;

public static class ConsoleEx
{
    private static ICodeWriter _writer = new ConsoleCodeWriter();

    public static int Indent
    {
        get => _writer.Indent;
        set => _writer.Indent = value;
    }

    public static void Code(object value)
        => _writer.Code(value);

    public static void CodeLn(object value = null)
        => _writer.CodeLn(value);

    public static void CommentLn(object? value)
        => _writer.CommentLn(value);
}